﻿<%@ Page Title="Tra cứu lịch lái xe" MasterPageFile="~/Admin/Site.Master" Language="C#"
    AutoEventWireup="true" CodeBehind="TraCuuLich.aspx.cs" Inherits="Transport.Admin.TraCuuLich" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <script type="text/javascript">
                $("#MainContent_btn_Search").validate({
                    errorElement: "span", //Thành phần HTML hiện thông báo lỗi
                });
            });
    </script>
    <script type="text/javascript">
        $(function () {
            var txt_Begin = $("#MainContent_txt_Begin").datepicker({ dateFormat: 'dd/mm/yy', changeYear: true, changeMonth: true, yearRange: "-70:+0" });
            var txt_Begin = $("#MainContent_txt_End").datepicker({ dateFormat: 'dd/mm/yy', changeYear: true, changeMonth: true, yearRange: "-70:+0" });
        }); 
    </script>
    <p>
        <asp:Label ID="lb_Test" runat="server"></asp:Label>
        <b>ID:</b>
        <asp:TextBox ID="txt_ID" runat="server"></asp:TextBox>
        <b>Từ ngày:</b>
        <asp:TextBox ID="txt_Begin" runat="server"></asp:TextBox>
        <b>Đến ngày:</b>
        <asp:TextBox ID="txt_End" runat="server"></asp:TextBox>
        <asp:Button ID="btn_Search" runat="server" Text="Tìm" />
    </p>
    <p>
        <asp:GridView ID="GridView_Lich" runat="server" AllowPaging="True" AutoGenerateColumns="false"
            CellPadding="4" CellSpacing="4" ForeColor="#333333" GridLines="None">
            <AlternatingRowStyle BackColor="White" />
            <Columns>
                <asp:BoundField DataField="MaDatXe" HeaderText="Mã đặt xe" />
                <asp:BoundField DataField="BienSoXe" HeaderText="Biển số xe" />
                <asp:BoundField DataField="TuNgay" DataFormatString="{0:d}" 
                    HeaderText="Từ ngày" />
                <asp:BoundField DataField="DenNgay" DataFormatString="{0:d}" 
                    HeaderText="Đến ngày" />
                <asp:BoundField DataField="GioDon" HeaderText="Thời gian đón" />
                <asp:BoundField DataField="DiaDiemDon" HeaderText="Địa điểm đón" />
            </Columns>
            <FooterStyle BackColor="#7FB308" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#7FB308" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
            <RowStyle BackColor="#FFFBD6" ForeColor="#333333" />
            <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
            <SortedAscendingCellStyle BackColor="#FDF5AC" />
            <SortedAscendingHeaderStyle BackColor="#4D0000" />
            <SortedDescendingCellStyle BackColor="#FCF6C0" />
            <SortedDescendingHeaderStyle BackColor="#820000" />
        </asp:GridView>
    </p>
</asp:Content>
